package com.itcm.skymail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcm.common.utils.PageUtils;
import com.itcm.skymail.product.entity.CategoryEntity;
import com.itcm.skymail.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author cm_fighting
 * @email cmtianxie@163.com
 * @date 2020-08-27 14:20:36
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> ids);

    List<Long> getCategoryPathById(Long categoryId);

    void updateAll(CategoryEntity category);

    List<CategoryEntity> getLevelOne();

    Map<String, List<Catalog2Vo>> getCatalogJson();
}

